﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Text;

namespace HamcoWcs.Entitys.TaskAmounts
{
    public class TaskAmountConfig : IEntityTypeConfiguration<TaskAmount>
    {
        public void Configure(EntityTypeBuilder<TaskAmount> builder)
        {
            builder.HasComment("任务统计表");
            builder.Property(x => x.TotalTaskAmount).IsRequired().HasMaxLength(50).HasComment("总任务数量");
            builder.Property(x => x.InboundTaskAmount).IsRequired().HasMaxLength(50).HasComment("入库任务数量");
            builder.Property(x => x.OutboundTaskAmount).IsRequired().HasMaxLength(50).HasComment("出库任务数量");
            builder.Property(x => x.amount).IsRequired().HasComment("每天任务数量");
        }
    }
}
